package com.hkts.naturalgas.curvesettings.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author yck
 * @since 2021-10-26
 */
public class HktsPowerFailure extends Model<HktsPowerFailure> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 停电，气标识
     */
    private String powerFailureCode;
    /**
     * 停电或停气时间
     */
    private LocalDateTime stopTime;

    /**
     * 由停电或停气恢复正常的时间
     */
    private LocalDateTime recorveyTime;

    public LocalDateTime getRecorveyTime() {
        return recorveyTime;
    }

    public void setRecorveyTime(LocalDateTime recorveyTime) {
        this.recorveyTime = recorveyTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPowerFailureCode() {
        return powerFailureCode;
    }

    public void setPowerFailureCode(String powerFailureCode) {
        this.powerFailureCode = powerFailureCode;
    }

    public LocalDateTime getStopTime() {
        return stopTime;
    }

    public void setStopTime(LocalDateTime stopTime) {
        this.stopTime = stopTime;
    }

    public static final String ID = "id";

    public static final String POWER_FAILURE_CODE = "power_failure_code";

    public static final String STOP_TIME = "stop_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "HktsPowerFailure{" +
                ", id=" + id +
                ", powerFailureCode=" + powerFailureCode +
                ", stopTime=" + stopTime +
                "}";
    }
}
